import org.springframework.context.support.ClassPathXmlApplicationContext;
import soa.api.CustomerApi;

/**
 * Created by Administrator on 2018/2/28.
 */
public class CustomerTest {

    public static void main(String[] args){

        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[]{"/dubbo_consumer.xml"});
        context.start();

        CustomerApi customerApi = (CustomerApi)context.getBean("customerService");

        String result = customerApi.getCustomer();

        System.out.println(result);
    }
}
